home *** CD-ROM | disk | FTP | other *** search
- #ifndef __EVENMOREFILES__
- #define __EVENMOREFILES__
-
- #ifndef __FILES__
- #include <Files.h>
- #endif
-
- enum {
- GenericFloppy,
- GenericServer,
- GenericCDRom,
- GenericHD,
- GenericRAMDisk,
- IomegaBernoulliDisk
- };
-
- enum {
- online,
- offline,
- ejected,
- invalid
- };
-
- pascal OSErr GetFileSpec(short anFRefNum, FSSpec *aFileSpec);
- pascal OSErr GetVolumeModDate(short aVRefNum, unsigned long *aDate);
- pascal OSErr GetNameOfReferencedFile(short anFRefNum, Str255 aName);
- pascal OSErr GetFileParID(short aRefNum, long *aParID);
- pascal OSErr GetFolderParID(short aVRefNum, long aDirID, long *aParent);
- pascal OSErr GetFolderName(short aVRefNum, long aDirID, Str255 aName);
- pascal OSErr GetVolumeName(short aVRefNum, Str255 aName);
- pascal OSErr GetFilesVolume(short anFRefNum, short *aVRefNum);
- pascal OSErr CanAccess(short aVRefNum, long aDirID, Boolean *canAccess);
- pascal OSErr FileInTrashCan(short aFRefNum, Boolean *inTrash);
- pascal short GetFilesVolumeType(short aRefNum);
- pascal OSErr GetFilesVolumeStatus(short aRefNum, short *aStatus);
- pascal OSErr GetFreeBytesOnVolume(short aVRefNum, unsigned long *aFreeBytes);
- pascal void FSGetFolderSize(FSSpecPtr aFolder, unsigned long *aFolderSize);
- pascal OSErr GetDirectorySize(long aVRefNum, short aDirID, unsigned long *aDirectorySize);
- pascal OSErr GetTrashFolder(short aVRefNum, FSSpecPtr aTrash);
-
- #endif